package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 设备品牌型号表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 17:30:58
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_dev_brand_type")
public class BDevBrandType extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 品牌id
     */
    @TableField(value = "brand_id", condition = EQUAL)
    @Schema(description = "品牌id")
    private Long brandId;
    /**
     * 型号标识
     */
    @TableField(value = "type_code", condition = LIKE)
    @NotBlank(message = "型号标识不能为空或空白字符")
    @Schema(description = "型号标识")
    private String typeCode;
    /**
     * 型号说明
     */
    @TableField(value = "type_note", condition = LIKE)
    @Schema(description = "型号说明")
    private String typeNote;
    /**
     * 是否删除 0否1是
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除 0否1是")
    private Integer isDeleted;



}
